import service from "@/utils/request"

import LoginWork from "@/utils/LoginWork"
// 获取岗位数据
export const getPositionData = (parms:any) => {
    return service.get<any,any>(`/mes/part/list?seqNo=${parms.seqNo}&partName=${parms.partName}&engPartName=${parms.engPartName}`)

}

// 新增
export const addPositionData = (data:any) => {
    return service.post<any,any>(`/mes/part/add`,data) 
}

// 删除
export const delPositionData = (data:any) => {
    return service.delete<any,any>(`/mes/part/remove/${data}`)
}

// 修改
export const editPositionData = (data:any) => {
    return service.put<any,any>(`/mes/part/update`,data)
}